package com.jml.蚂蚁.netty.普通client;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

/**
 * @author:jml
 * @date: 2019/12/24 10:48
 * @description：TCP客户端，通过socket写的
 */
public class SocketClient {
	
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("127.0.0.1", 8080);
        OutputStream outputStream = socket.getOutputStream();
        outputStream.write("客户端发送请求".getBytes());
        while (true) {

        }
        /*outputStream.close();
        socket.close();*/

    }
}
